﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ValuationModel;

namespace ValuationBLL
{
    public class ProjectBLL
    {

        #region 立项显示
        /// <summary>
        /// 立项显示
        /// </summary>
        /// <returns></returns>
        public List<EABasic_Info> ProjectApprovalList()
        {
            return BllFactory.NewProjectDAL().ProjectApprovalList();
        }
        #endregion

        #region 查询单个实体
        /// <summary>
        /// 查询单个实体
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="t"></param>
        /// <returns></returns>
        public List<T> GetList<T>()
        {
            return BllFactory.NewUsersDAL().GetList<T>();
        }
        #endregion

        #region 添加借款人信息
        //添加借款人信息
        public int AddLoan(EALoan_Info Loan)
        {
            return BllFactory.NewProjectDAL().AddLoan(Loan);
        }
        #endregion

        #region 获取借款人编号
        // 获取借款人编号
        public List<EALoan_Info> List()
        {
            return BllFactory.NewProjectDAL().List();
        }
        #endregion

        #region 添加登记信息
        //添加登记信息
        public int AddEntity(EABasic_Info Basic)
        {
            return BllFactory.NewProjectDAL().AddEntity(Basic);
        }
        #endregion

        #region 查看详情
        /// <summary>
        /// 查看详情
        /// </summary>
        /// <returns></returns>
        public DengJi BackDatas(string pnum)
        {
            return BllFactory.NewProjectDAL().BackDatas(pnum);
        }
        #endregion

        #region 询价添加，显示
        /// <summary>
        /// 询价添加
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="t"></param>
        /// <returns></returns>
        public bool InsertEAInquiry<T>(T t)
        {
            return BllFactory.NewProjectDAL().InsertEAInquiry<T>(t);
        }

        //询价显示
        public List<EAInquiry> EAInquiryList()
        {
            return BllFactory.NewProjectDAL().EAInquiryList();
        }
        #endregion

        #region 批量添加图片
        //批量添加图片
        public int Upload(EAPhoto photo)
        {
            return BllFactory.NewProjectDAL().Upload(photo);
        }
        #endregion


       
        #region 空方法
        public bool AUpdateEntity<T>(T t)
        {
            return BllFactory.NewProjectDAL().AUpdateEntity<T>(t);
        }
        #endregion
    }
}
